#ifndef __MQ_H__
#define __MQ_H__

#include "stdint.h"
#include "queue.h"

#define Q_UART_BUFFER_SIZE  1024  //消息池数据长度极限
#define Q_UART_LEN_SIZE  50 //消息条数极限

extern QUEUE_HandleTypeDef Q_Uart_Handle; //消息池结构体
extern QUEUE_HandleTypeDef Q_Uart_len_Handle; //单包数据长度记录结构体
extern QUEUE_HandleTypeDef Q_Uart_Type_Handle; //压入数据对象指定

extern QUEUE_DATA_T Q_Uart_buff[Q_UART_BUFFER_SIZE];  //消息池
extern QUEUE_DATA_T Q_Uart_len[Q_UART_LEN_SIZE];  //消息池长度记忆
extern QUEUE_DATA_T Q_Uart_Type[Q_UART_LEN_SIZE];  //消息池长度记忆

void Message_Processing_Pool(void);
void Mes_uart_Press(uint8_t Type,uint8_t *arry,uint16_t len);
static void Mes_uart_Pop(uint8_t *Type,uint8_t *arry,uint8_t *len);
void MQ_uart_Init(void);
#endif
